<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>发现</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <style>
        html,
        body {
            font-size: 14px;
            height: 100%;
            background-color: #f2f2f2;
        }

        header {
            height: 75px;
            position: fixed;
            top: 0;
            width: 100%;
            height: 75px;
            text-align: left;
            background-color: #FBB40E;
            z-index: 999;
        }

        header .head {
            margin-top: 38px;
            color: #fff;
            text-align: center;
        }

        main {
            padding-top: 75px;
        }

        .introduce {
            position: relative;
            width: 100%;
            height: 10rem;
            background-image: url(../image/article/city.jpg);
            background-size: cover;
        }

        .introduce .title {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            color: #fff;
            text-align: center;
            background: rgba(255, 255, 255, 0.3);
        }

        .title .title-top {
            display: inline-block;
            font-size: 1.3rem;
            padding: 0.5rem;
            box-sizing: border-box;
        }

        .title .title-bottom {}

        .story {
            width: 95%;
            overflow: hidden;
            margin: 1rem auto;
            background-color: #fff;
            border-radius: 0.35rem;
        }

        .story .backgroundImg {
            position: relative;
            height: 10rem;
            margin-bottom: 1rem;
        }

        .story .backgroundImg img {
            width: 100%;
            height: 100%;
        }

        .headportrait {
            width: 4rem;
            height: 4rem;
            position: absolute;
            bottom: 0;
            right: 10%;
            transform: translateY(2rem);
            border-radius: 50%;
            overflow: hidden;
        }

        .headportrait img {
            width: 100%;
            height: 100%;
            vertical-align: top;
        }

        .articleteach {
            padding-left: 1rem;
            margin-bottom: 1rem;
        }

        .articleteach h4 {
            display: inline-block;
            margin-right: 0.5rem;
        }

        .articleteach span {
            color: #678;
        }
    </style>
</head>

<body>
    <header>
        <div class="head">
            <span>发现</span>
        </div>
    </header>
    <main>
        <div class="introduce">
            <div class="title">
                <p class="title-top">兼职攻略、心得</p>
                <p class="title-bottom">#分享兼职路上的酸甜苦辣</p>
            </div>
        </div>
        <div class="story teachChat" page-address="article.html">
            <div class="backgroundImg">
                <img src="../image/article/bk.jpg" alt="">
                <div class="headportrait">
                    <img src="../image/article/teach.png" alt="">
                </div>
            </div>
            <div class="articleteach">
                <h4>教学聊</h4>
                <span>兼职最正确的姿势看这里</span>
            </div>
        </div>
        <div class="story workchat" page-address="article.html">
            <div class="backgroundImg">
                <img src="../image/article/work1.jpg" alt="">
                <div class="headportrait">
                    <img src="../image/article/workchat.png" alt="">
                </div>
            </div>
            <div class="articleteach">
                <h4>谈工作</h4>
                <span>如何保持良好的工作状态</span>
            </div>
        </div>
        <div class="story notes" page-address="article.html">
            <div class="backgroundImg">
                <img src="../image/article/gs.jpg" alt="">
                <div class="headportrait">
                    <img src="../image/article/story.png" alt="">
                </div>
            </div>
            <div class="articleteach">
                <h4>小纸条</h4>
                <span>看看小伙伴们的兼职故事</span>
            </div>
        </div>
        <div class="story riskknowledge" page-address="article.html">
            <div class="backgroundImg">
                <img src="../image/article/zzs.jpg" alt="">
                <div class="headportrait">
                    <img src="../image/article/technology.png" alt="">
                </div>
            </div>
            <div class="articleteach">
                <h4>涨知识</h4>
                <span>科普什么是兼职？</span>
            </div>
        </div>
        <div class="story interview" page-address="article.html">
            <div class="backgroundImg">
                <img src="../image/article/ms.jpg" alt="">
                <div class="headportrait">
                    <img src="../image/article/mj.png" alt="">
                </div>
            </div>
            <div class="articleteach">
                <h4>面经</h4>
                <span>如何从众多求职者中斩获offer？</span>
            </div>
        </div>
    </main>
</body>
<script src="../script/jquery-1.11.3.min.js" charset="utf-8"></script>
<script src="../script/api.js" charset="utf-8"></script>
<script type="text/javascript">
    apiready = function() {

    };

    $(".story").click(function() {
        var page_link = $(this).attr("page-address");
        if (page_link) {
            api.openWin({
                name: page_link.split(".")[0],
                url: page_link,
                bounces: false,
                pageParam: {
                    title: $(this).find('h4').text()
                }
            })
        }
    })
</script>

</html>
